package com.molichuxing.services.infrastructure.dao;

import com.molichuxing.framework.dao.RootMapper;
import com.molichuxing.services.infrastructure.bean.InvoiceDetailBean;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 发票申请 Mapper 接口
 * </p>
 *
 * @author zhaopenghui
 * @since 2019-09-20
 */
public interface InvoiceDetailMapper extends RootMapper<InvoiceDetailBean> {

    /**
     * 通过流水号查询
     *
     * @param invoiceSerialNumber
     * @return
     */
    InvoiceDetailBean getByInvoiceSerialNumber(@Param("invoiceSerialNumber") String invoiceSerialNumber);

    /**
     * 通过流水号查询
     *
     * @param invoiceSerialNumberList
     * @return
     */
    List<InvoiceDetailBean> getListByInvoiceSerialNumber(@Param("invoiceSerialNumberList") List<String> invoiceSerialNumberList);

}